package pers.cz.analysis;

import pers.cz.analysis.admin.AnalysisStartor;
import pers.cz.analysis.entitys.ClassDesc;
import pers.cz.analysis.enums.ExportConf;
import pers.cz.analysis.store.IStore;
import pers.cz.analysis.store.StoreTools;
import pers.cz.jefconfig.config.JefConfiguration;
import utils.ReflectUtils;

import java.io.IOException;
import java.util.List;

/**
 * @program: Jef-code-analysis
 * @description: 启动类
 * @author: Cheng Zhi
 * @create: 2023-10-11 21:11
 **/
public class Application {

    public static void main(String[] args) throws IOException {

        AnalysisStartor analysisStartor = new AnalysisStartor();
        //analysisStartor.start("D:\\Java\\JavaSource\\Jef-orm");
        //analysisStartor.start("D:\\work\\20230509\\ams");

        analysisStartor.start(JefConfiguration.get(ExportConf.JEF_ANALYSIS_SCAN_PATH));
        List<ClassDesc> classDescs = analysisStartor.getClassDescs();
        IStore instance = StoreTools.getStore();
        instance.save(classDescs);
    }
}
